//
//  CommentModel.h
//  ZhiHuDaily
//
//  Created by albert on 16/8/17.
//  Copyright © 2016年 albert. All rights reserved.
//  评论模型

#import <Foundation/Foundation.h>

@class CommentRefModel;

@interface CommentModel : NSObject
/** 作者名 */
@property (nonatomic, copy) NSString *author;

/** 内容 */
@property (nonatomic, copy) NSString *content;

/** 头像 */
@property (nonatomic, copy) NSString *avatar;

/** 时间 */
@property (nonatomic, assign) long long time;

/** 评论ID */
@property (nonatomic, assign) int ID;

/** 喜欢数 */
@property (nonatomic, assign) int likes;

/** 引用的评论 */
@property (nonatomic, strong) CommentRefModel *reply_to;

/****** 额外的属性 ******/
/** cell行高 */
@property (nonatomic, assign, readonly) CGFloat cellHeight;

/** cell行高 */
@property (nonatomic, assign, readonly) CGFloat cmtRefHeight;

/** 记录引用评论是否展开 */
@property (nonatomic, assign) BOOL cmtRefUnfolded;

/** 记录评论是否被赞 */
@property (nonatomic, assign) BOOL isLiked;

/** UIMenuController */
@property (nonatomic, strong) UIMenuController *menu;

/** UIMenuController是否已经赋值 */
@property (nonatomic, assign) BOOL isMenuAdded;
@end
